﻿using BluetoothMachine.Lucifer;
using BluetoothMachine.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BluetoothMachine.Services.Models
{
    /// <summary>
    /// 通道对应的轴，全放在这里，方便做逻辑处理，这就叫做数据结构
    /// </summary>
    public class KeyTestModel : IDataContext
    {
        /// <summary>
        /// X轴
        /// </summary>
        public ushort RCCX { get; set; }
        /// <summary>
        /// Y轴
        /// </summary>
        public ushort RCCY { get; set; }
        /// <summary>
        /// Z轴
        /// </summary>
        public ushort RCCZ { get; set; }

        /// <summary>
        /// Z轴抬升坐标
        /// </summary>
        public double ZReturnCoordinate { get; set; }
        /// <summary>
        /// 工位 1{0-1} 2{2-3} 3{4-5} 4{6-7} 5{8-9}
        /// </summary>
        public ushort[] Station { get; set; }

        public AxleCardModel AxleCard { get; set; }

        /// <summary>
        /// 通道 1-5
        /// </summary>
        public int Passageway { get; set; }

        /// <summary>
        /// 卡号====数组等于2时，标识有两张运动控制卡
        /// </summary>
        public ushort[] CardID { get; set; }

        #region 测试专用
        public double[] XYZ { get; set; }//测试时用得机构原点坐标
        public int IntervalTime { get; set; }//间隔时间
        #endregion
    }
}
